


namespace Core.Extensions
{
    using System;
    using System.Collections.Generic;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Resources;

    /// <summary>
    /// Advanced ballistics Extension class
    /// </summary>
    
    public sealed class AdvancedBallistics: ExtensionBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Extensions.AdvancedBallistics"/> class.
        /// </summary>
        public AdvancedBallistics()
            : base(
                Traduction.extensions_advanced_ballistics, 
                ExtensionGroupsEnum.WeaponUsage,
                4,
                0, 
                new ExtensionCost(80000,0),
                new ICondition<IExtension>[]
                    {
                        new ExtensionCondition<MissileLaunch>(3),
                        new ExtensionCondition<BasicBallistics>(3)
                    } )
        {
            
            
            Modifiers = new IModifier[]
                            {
                                new Modifier(FeatureTypesEnum.Module,FeaturesEnum.MediumMissileLauncherDamage,0.03)
                            };

        }

        /// <summary>
        /// Obtains the extension description
        /// </summary>
        public override string Description
        {
            get { return Traduction.extensions_advanced_ballistics_description; }
        }
    }
}